import fetch from '@/utils/fetch';

// 说明：手工抄表分页查询(条件搜索)
// 接口：api/cb/flManualReading/search1/{page}/{size}
// 请求类型：post
export function searchFlManualReading(page,size, obj) {
    return fetch({
        url: `api/cb/flManualReading/search1/${page}/${size}`,
        // url: 'api/cb/flManualReading/search1/'+ page+'/'+size ,
        method: 'post',
        data: obj
    });
}

// 说明：获取单个手工抄表
// 接口：api/cb/flManualReading/{id}
// 请求类型：get
export function getFlManualReading(id) {
    return fetch({
        url: 'api/cb/flManualReading/' + id,
        method: 'get'
    })
}



// 导出Xlsx
export function exprotXls() {
    return fetch({
      url: 'api/cb/flManualReading/exprotXls',
      responseType: 'blob',
      method: 'get'
    });
  }
  // 导入Xlsx
  export function importXls(obj) {
    return fetch({
      url: 'api/cb/flManualReading/importXls',
      method: 'post',
      data: obj
    });
  }
  // 下载模板
  export function downTem() {
    return fetch({
      url: 'api/cb/flManualReading/exprotExcelModel',
      responseType: 'blob',
      // responseType: 'arraybuffer',
      method: 'get'
    });
  }
